export declare namespace DB {
	type DateId = { dateId : number; }
	type Date = { date : string; }
	type DateSource = DateId & Date;
	type EventId = { eventId : number; }
	// 权重值越小，排序越靠前
	type Weight = { weight : number; }
	// 金额变动类型 expend 支出 income 收入
	type ChangeType = { changeType : 'expend' | 'income'; }
	type EventRecord = ChangeType & {
		// 事务名称
		eventName : string;
		// 金额
		amount : number;
	}
	type EventRecordSource = EventId & DateId & EventRecord & Weight;
	type RecordItem = EventRecordSource & Date;
}